onClose

abstract fun onClose(): Boolean(source)

The user is attempting to close the SearchView.

Return

true if the listener wants to override the default behavior of clearing the text field and dismissing it, false otherwise.